<%--
  Created by IntelliJ IDEA.
  User: ASUS
  Date: 2020/1/9
  Time: 10:20
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<c:if test="${msg!=null}">
    ${msg}
</c:if>
<table border="1" cellpadding="0" cellspacing="0">
    <c:forEach  items="${userlist.data}" var="user" >
        <tr>
            <td>${user.id}</td>
            <td>${user.name}</td>
            <td>${user.telephone}</td>
            <td>${user.unit}</td>
            <td>${user.enterdate}</td>
            <td><a href="/userDel-${user.id}.do">删除</a></td>
        </tr>
    </c:forEach>
</table>
<a href="/userList.do?page=1">首页</a>
<a href="/userList.do?page=${userlist.page-1}">上一页</a>
<a href="/userList.do?page=${userlist.page+1}">下一页</a>
<a href="/userList.do?page=${userlist.totalPage}">尾页</a>

</body>
</html>
